package cn.edu.lingnan.servlet;

import java.io.IOException;
import java.util.Vector;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import cn.edu.lingnan.dao.StudentDAO;
import cn.edu.lingnan.dto.Student;

public class DeteleStuServlet extends HttpServlet {

	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
//		//1.
//		String sId = req.getParameter("sId");
//		//2.
//		StudentDAO sd = new StudentDAO();
//		boolean flag = sd.delete(sId);
//		Vector<Student> v = sd.findAllStudent();
//		HttpSession session = req.getSession();
//		session.setAttribute("allStu", v);
//		//3.
//		if(flag){
//			resp.sendRedirect(req.getContextPath()+"/admin/allStu.jsp");
//		}else{
//			resp.sendRedirect(req.getContextPath()+"/error.html");
//		}
	}

}
